package com.hqyj.dao;

import com.hqyj.pojo.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> showGoodsList();

    List<Goods> showGoodsList1();

    List<Goods> showGoodsList2();

    List<Goods> showGoodsList3();

    List<Goods> showGoodsList4();

    List<Goods> showGoodsList5();

    String selectGoodSalesByGoodsId(String getgId);

    List<Goods> selectAll(Goods goods);

    int countNumberAll();

    int countNumberLots();

    void updateTableState1(@Param("gId") String gId,@Param("userId") int userId);

    void updateTableState11(@Param("gId") String gId,@Param("userId") int userId);

    void subGoodsNumber(@Param("gId") String gId,@Param("gNumber") Integer gNumber);

    String selectPhotoUrlByGoodsName(@Param("gNumber")String gNumber);

    Integer selectPriceByGoodsName(@Param("gNumber")String gNumber);
}